<template>
  <a-modal
    :visible="visible"
    title="欠缴欠费"
    okText='保存'
    :width="400"
    @cancel="() => { $emit('cancel') }"
    @ok="() => { $emit('create') }"
  >
    <a-form :form="form">
      <a-row>
        <a-form-item
          label="清除类型"
          :labelCol="{span: 8,offset: 2}"
          :wrapperCol="{span: 12}"
        >
          <a-select v-decorator="[
            'qclx',
            {
              rules: [{ required: true, message: '请选择清除类型!' }],
            }
          ]" mode="multiple">
            <!-- <a-select-option value="xf">学费</a-select-option>
            <a-select-option value="zsf">住宿费</a-select-option> -->
            <a-select-option v-for="i in status" :key="i.code" :value="i.code">{{ i.name }}</a-select-option>
          </a-select>
        </a-form-item>
      </a-row>
    </a-form>
  </a-modal>
</template>

<script>
export default {
  props: ['visible', 'editId', 'TYPE0123'],
  data () {
    return {
      status: [
        {code: 'xf', name: '学费'},
        {code: 'zsf', name: '住宿费'}
      ]
    }
  },
  beforeCreate () {
    // this.$api.base.dictionaryData('TYPE0123').then(res => {
    //   this.status = res.data
    // })
    this.form = this.$form.createForm(this)
  }
}
</script>

<style>

</style>
